#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Pablo
#
# Created:     14/03/2012
# Copyright:   (c) Monxcleyr Productions 2012
# Licence:     GPL v3
#-------------------------------------------------------------------------------
#!/usr/bin/env python

import pygame, sys
from pygame.locals import *

def main():

  pygame.init()
  running = True
  pygame.display.set_mode((300,200))

  while running == True:
    for event in pygame.event.get():
      if event.type == QUIT:
        pygame.quit()
        sys.exit()
      elif event.type == KEYDOWN:
        print event.key, pygame.key.name(event.key)

if __name__ == '__main__':
    main()